﻿using _1_Interfaces.Models.Dtos.Cjw;
using _1_Interfaces.Models.Tables.Cjw;
using System;
using System.Collections.Generic;
using System.Text;

namespace _1_Interfaces.Interfaces.Cjw
{
    /// <summary>
    /// 通知栏表服务
    /// </summary>
    public interface INoticeListService
    {
        /// <summary>
        /// 获取通知栏列表
        /// </summary>
        /// <param name="pageIndex">第几页</param>
        /// <param name="pageSize">一页几条</param>
        /// <returns></returns>
        NoticeListDto GetNoticeList(int pageIndex, int pageSize);

        /// <summary>
        /// 新增通知栏内容
        /// </summary>
        /// <param name="noticeList">通知栏表实体，id不用传，后端赋值</param>
        /// <returns></returns>
        bool AddNotice(NoticeList noticeList);

        /// <summary>
        /// 编辑通知栏内容
        /// </summary>
        /// <param name="noticeList">通知栏表实体</param>
        /// <returns></returns>
        bool EditNotice(NoticeList noticeList);

        /// <summary>
        /// 删除通知栏内容 
        /// </summary>
        /// <param name="noticeId ">通知信息id</param>
        /// <returns></returns>
        bool DelNotice(int noticeId);

        /// <summary>
        /// 获取通知栏
        /// </summary>
        /// <param name="noticeId">通知栏id</param>
        /// <returns></returns>
        NoticeList GetNoticeByNoticeId(int noticeId);
    }
}
